package com.esteel.settlement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlElement;

import org.springframework.format.annotation.DateTimeFormat;


/**
 * The persistent class for the TB_SETT_INMONEY database table.
 * 
 */
@Entity
@Table(name="TB_SETT_INMONEY")
@NamedQuery(name="TbSettInmoney.findAll", query="SELECT t FROM TbSettInmoney t")
public class TbSettInmoney implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="TB_SETT_INMONEY_INID_GENERATOR", sequenceName="SEQ_SETT_INMONEY",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TB_SETT_INMONEY_INID_GENERATOR")
	@Column(name="IN_ID")
	private long inId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="ACCT_DATE")
	private Date acctDate;

	@Column(name="CCY_CODE")
	private String ccyCode;

	@Column(name="COUNTER_ID")
	private String counterId;

	@Column(name="CUST_ACCT_ID")
	private String custAcctId;

	@Column(name="IN_ACCT_ID")
	private String inAcctId;

	@Column(name="IN_ACCT_ID_NAME")
	private String inAcctIdName;

	@Column(name="LOG_NO")
	private String logNo;

	private String reserve;

	private int sender;

	@Column(name="SUP_ACCT_ID")
	private String supAcctId;

	@Column(name="TRAN_AMOUNT")
	private double tranAmount;

	@Column(name="TRAN_STATUS")
	private int tranStatus;

	// 开始日期
		@XmlElement(name = "BeginDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		@Transient
		private Date beginDate;
		// 结束日期
		@XmlElement(name = "EndDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		@Transient
		private Date endDate;
	
	public TbSettInmoney() {
	}

	public long getInId() {
		return this.inId;
	}

	public void setInId(long inId) {
		this.inId = inId;
	}

	public Date getAcctDate() {
		return this.acctDate;
	}

	public void setAcctDate(Date acctDate) {
		this.acctDate = acctDate;
	}

	public String getCcyCode() {
		return this.ccyCode;
	}

	public void setCcyCode(String ccyCode) {
		this.ccyCode = ccyCode;
	}

	public String getCounterId() {
		return this.counterId;
	}

	public void setCounterId(String counterId) {
		this.counterId = counterId;
	}

	public String getCustAcctId() {
		return this.custAcctId;
	}

	public void setCustAcctId(String custAcctId) {
		this.custAcctId = custAcctId;
	}

	public String getInAcctId() {
		return this.inAcctId;
	}

	public void setInAcctId(String inAcctId) {
		this.inAcctId = inAcctId;
	}

	public String getInAcctIdName() {
		return this.inAcctIdName;
	}

	public void setInAcctIdName(String inAcctIdName) {
		this.inAcctIdName = inAcctIdName;
	}

	public String getLogNo() {
		return this.logNo;
	}

	public void setLogNo(String logNo) {
		this.logNo = logNo;
	}

	public String getReserve() {
		return this.reserve;
	}

	public void setReserve(String reserve) {
		this.reserve = reserve;
	}

	public int getSender() {
		return this.sender;
	}

	public void setSender(int sender) {
		this.sender = sender;
	}

	public String getSupAcctId() {
		return this.supAcctId;
	}

	public void setSupAcctId(String supAcctId) {
		this.supAcctId = supAcctId;
	}

	public double getTranAmount() {
		return this.tranAmount;
	}

	public void setTranAmount(double tranAmount) {
		this.tranAmount = tranAmount;
	}

	public int getTranStatus() {
		return this.tranStatus;
	}

	public void setTranStatus(int tranStatus) {
		this.tranStatus = tranStatus;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	
	
}